package priv.yiyuan.example.design.wrapper;

/**
 * 圆形
 * <p>
 * 组合模式-叶子节点
 *
 * @author YiYuan
 * @data 2025/9/1
 * @apoNote
 */
public class Circle implements Graphic {

    private String color;

    public Circle(String color) {
        this.color = color;
    }

    @Override
    public void draw() {
        System.out.println("绘制一个颜色为: " + color + " 的圆形。");
    }

    @Override
    public Graphic clone() {
        return new Circle(this.color);
    }
}
